package com.example.demo;

import lombok.Data;

/**
 * @author yrforest
 * @version 1.0
 * @description: TODO
 * @date 2025/7/11 14:51
 */
@Data
public class ResultResponse<T> {
    private Integer code;
    private String message;
    private String description;
    private T data;

    public static <V> ResultResponse success(V data) {
        ResultResponse<V> response = new ResultResponse<>();
        response.setData(data);
        response.setCode(200);
        response.setMessage("请求成功");
        return response;
    }
}
